using System.Web.Mvc;
using ZQNB.Common.Web;

namespace ZQNB.Web.Areas.Space
{
    public class SpaceAreaRegistration : NbAreaRegistration
    {
        public override string AreaName
        {
            get { return "Space"; }
        }

        public override int Order
        {
            get { return 3; }
        }

        protected override void RegisterRoutes(AreaRegistrationContext context)
        {
            context.MapRoute(
                "",
                "Space",
                new { area = "Space", controller = "Home", action = "Show" },
                namespaces: new[] { "ZQNB.Web.Areas." + AreaName + ".Controllers" }
            );

            context.MapRoute(
                "",
                "Space/Home/Show",
                new { area = "Space", controller = "Home", action = "Show" },
                namespaces: new[] { "ZQNB.Web.Areas." + AreaName + ".Controllers" }
            );

            context.MapRoute(
                AreaName + "_default",
                AreaName + "/{owner}/{controller}/{action}",
                new { area = AreaName },
                namespaces: new[] { "ZQNB.Web.Areas." + AreaName + ".Controllers" }
            );
        }

        protected override void RegisterBundles()
        {
        }
    }
}